package cn.yunbamboos.mybatis.mapping.sqlnode;

import org.apache.ibatis.scripting.xmltags.SqlNode;
import org.apache.ibatis.scripting.xmltags.TrimSqlNode;
import org.apache.ibatis.session.Configuration;

import java.util.Arrays;
import java.util.List;

public class CustomWhereSqlNode extends TrimSqlNode {

    private static final List<String> prefixList = Arrays.asList("AND ", "OR ", "AND\n", "OR\n", "AND\r", "OR\r", "AND\t", "OR\t");

    public CustomWhereSqlNode(Configuration configuration, SqlNode contents) {
        super(configuration, contents, "where", prefixList, null, null);
    }
}
